package gamecontent;

import javax.media.j3d.Alpha;
import javax.media.j3d.BranchGroup;
import javax.media.j3d.Transform3D;
import javax.media.j3d.TransformGroup;
import javax.swing.JFrame;
import javax.vecmath.Vector3f;

import modell.Froghead;
import animation.UpAndDown;

public class Frog extends BranchGroup{
	
	private TransformGroup tGAnim = null;
	private UpAndDown anim = null;
	
	//Complete Frog with Behavior
	public Frog(float x, float y, float z, JFrame textContent){
		TransformGroup tG = new TransformGroup();
		Transform3D t = new Transform3D();
		t.setTranslation(new Vector3f(x, y, z));
		tG.setTransform(t);
	
		this.anim = new UpAndDown();
		this.anim.addChild(new Froghead(textContent));
		
		tG.addChild(this.anim);
		this.addChild(tG);
	}
	
	public Alpha getAlphaOfFrogHead()
	{
		return this.anim.getAlpha();
	}
}
